'use strict';

// Declare app level module
angular.module('enderGame', ['ender.game.choice', 'ender.game.arena', 'ender.game.town', 'ender.game.character', 'ender.game.directives', 'ender.ui.directives' ]).
    config(['$routeProvider', function ($routeProvider) {
        $routeProvider.when('/menu', {
            templateUrl: 'partials/menu.html'
        });
        $routeProvider.when('/credits', {
            templateUrl: 'partials/credits.html'
        });
        $routeProvider.when('/tutorial', {
            templateUrl: 'partials/tutorial-menu.html'
        });
        $routeProvider.when('/new-game/', {
            templateUrl: 'partials/choice.html',
            controller: 'ChoiceController'
        });
        $routeProvider.when('/arena', {
            templateUrl: 'partials/arena.html',
            controller: 'ArenaController'
        });
        $routeProvider.when('/town', {
            templateUrl: 'partials/town.html',
            controller: 'TownController'
        });
        $routeProvider.when('/character', {
            templateUrl: 'partials/character.html',
            controller: 'CharacterController'
        });
        $routeProvider.when('/gambling/gamblers', {
            templateUrl: 'partials/gambling.html',
            controller: 'GamblersController'
        });
        $routeProvider.when('/gambling/gamblers/:gamblerId', {
            templateUrl: 'partials/prepare-boardgame.html',
            controller: 'PrepareBoardgameController'
        });
        $routeProvider.when('/gambling/boardgames/:boardgameId', {
            templateUrl: 'partials/boardgame.html',
            controller: 'BoardgameController'
        });
        $routeProvider.when('/shops', {
            templateUrl: 'partials/shops.html',
            controller: 'ShopsController'
        });
        $routeProvider.when('/trainers', {
            templateUrl: 'partials/trainers.html',
            controller: 'TrainersController'
        });
        $routeProvider.when('/trainers/:trainerId', {
            templateUrl: 'partials/trainer.html',
            controller: 'TrainerController'
        });
        $routeProvider.otherwise({redirectTo: '/menu'});
    }]);
